package com.xian.create;

public class ArrayDemo2 {
    public static void main(String[] args) {
        //目标：访问数组元素

        int [] age = {15,41,36};

        System.out.println(age[2]);


        //赋值
        age[2] = 100;
        System.out.println(age[2]);
        System.out.println(age.length);

        //数组（不为空）的最大索引为  length-1
    }
}
